package com.newway;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true)
@MapperScan({"com.newway.back.mapper","com.newway.wechat.mapper","com.newway.front.mapper"})
public class StartApplication {

    public static void main(String[] args) {

        SpringApplication.run(StartApplication.class,args);
    }


    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }

}


